all: yacc_cal.cpp
	g++ -o cal yacc_cal.cpp -Wall -ggdb
yacc_cal.cpp:cal.y lex_cal.cpp
	yacc -o yacc_cal.cpp -d cal.y
lex_cal.cpp:cal.l
	flex -o lex_cal.cpp cal.l
clean:
	rm core.*;rm lex_cal.* cal yacc_cal.* -rf
